import request from '@/utils'

// 获取视频分类
export const getVideoTab = () => request({
    url:'/video/category/list'
});

// 获取分类视频信息  参数分类id
export const getVideo = params => request({
    url:'/video/group',
    params
});

// 获取视频详情  参数视频id
export const getVideoDetail = params => request({
    url:'/video/detail',
    params
});

// 获取相关视频  参数视频id
export const getVideoAlike = params => request({
    url:'/related/allvideo',
    params
});

//全部MV    参数 area order limit offset
export const getMvAll = params => request({
    url:'/mv/all',
    params
});

//获取视频地址 id
export const getVideoUrl = params => request({
    url:'/video/url',
    params
});

// 获取MV地址 id
export const getMvUrl = params => request({
    url:'/mv/url',
    params
});

// 获取mv数据 id
export const getMvDetail = params => request({
    url:'/mv/detail',
    params
});

// 获取 mv 点赞转发评论数数据
export const getMvStar = params => request({
    url:'/mv/detail/info',
    params
});

// 给视频点赞  (MV  视频)
export const VideoLike = params => request({
    url:'/resource/like',
    params
});

// 给视频收藏  视频
export const videoSub = params => request({
    url:'/video/sub',
    params
});

// 给MV收藏  视频
export const mvSub = params => request({
    url:'/mv/sub',
    params
});

// 关注用户
export const followUser = params => request({
    url:'follow',
    params
});

// 关注歌手
export const followSinger = params => request({
    url:'/artist/sub',
    params
});
